<%-- 
    Document   : culture
    Created on : 2010-10-28, 14:56:36
    Author     : Kenny Lin
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>
            <c:if test="${requestScope['kenny.wiki.category'].categoryId == 1}">
                历史
            </c:if>
            <c:if test="${requestScope['kenny.wiki.category'].categoryId == 2}">
                文化
            </c:if>
            <c:if test="${requestScope['kenny.wiki.category'].categoryId == 3}">
                地理
            </c:if>
            <c:if test="${requestScope['kenny.wiki.category'].categoryId == 4}">
                自然
            </c:if>
                频道 - Kenny Wiki
        </title>
        <link href="templatemo_style.css" rel="stylesheet" type="text/css" />
        <link href="css_pirobox/white/style.css" media="screen" title="shadow" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="js/jquery.min.js"></script>
        <script type="text/javascript" src="js/piroBox.1_2.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                $().piroBox({
                    my_speed: 600, //animation speed
                    bg_alpha: 0.5, //background opacity
                    radius: 4, //caption rounded corner
                    scrollImage : false, // true == image follows the page, false == image remains in the same open position
                    pirobox_next : 'piro_next', // Nav buttons -> piro_next == inside piroBox , piro_next_out == outside piroBox
                    pirobox_prev : 'piro_prev',// Nav buttons -> piro_prev == inside piroBox , piro_prev_out == outside piroBox
                    close_all : '.piro_close',// add class .piro_overlay(with comma)if you want overlay click close piroBox
                    slideShow : 'slideshow', // just delete slideshow between '' if you don't want it.
                    slideSpeed : 4 //slideshow duration in seconds(3 to 6 Recommended)
                });
            });
        </script>

    </head>
    <body>

        <div id="templatemo_wrapper">
            <div id="templatemo_header">
                <c:if test="${sessionScope['kenny.wiki.user'] == null}">
                    <div id="login_flage">
                        <div class="banner">
                            <a href="${ctx}/user/regist.jsp">注册</a>
                        </div>
                        <div class="item"></div>
                        <div class="banner">
                            <a href="${ctx}/user/login.jsp">登录</a>
                        </div>
                    </div>
                </c:if>
                <c:if test="${sessionScope['kenny.wiki.user'] != null}">
                    <div id="login_flage">
                        <div class="banner">
                            <a href="${ctx}/user/secure/my_title">我的词条</a>
                        </div>
                        <div class="item"></div>
                        <div class="banner">
                            <a href="${ctx}/user/secure/add_title.jsp">添加词条</a>
                        </div>
                        <div class="item"></div>
                        <div class="banner">
                            <a href="${ctx}/user/secure/user_info.jsp">个人资料</a>
                        </div>
                        <div class="item"></div>
                        <div class="banner">
                            <a href="${ctx}/user/secure/update_info.jsp">修改资料</a>
                        </div>
                        <div class="item"></div>

                        <div class="banner">
                            <a href="${ctx}/user/logout">退出</a>
                        </div>
                        <div class="banner">
                            你好，${sessionScope['kenny.wiki.user'].userName}!
                        </div>
                    </div>
                </c:if>
                <div id="site_title">
                    <a href="http://www.templatemo.com" target="_parent"><img src="images/wiki_logo.png" alt="logo" /><span>——全球最大中文百科全书</span></a>
                </div>
                <div id="search">
                    <form action="${ctx}/searchTitle" method="post">
                        <input type="text" size="30" name="title"/>
                        <input type="submit" value="进入词条"/>
                    </form>
                </div>
            </div> 

            <div id="templatemo_banner">

                <div id="templatemo_menu">
                    <c:if test="${requestScope['kenny.wiki.category'].categoryId == 1}">
                        <ul>
                            <li><a href="${ctx}/loadIndex">首页</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=1" class="current">历史</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=2">文化</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=3">地理</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=4">自然</a></li>
                        </ul>
                    </c:if>
                    <c:if test="${requestScope['kenny.wiki.category'].categoryId == 2}">
                        <ul>
                            <li><a href="${ctx}/loadIndex">首页</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=1">历史</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=2" class="current">文化</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=3">地理</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=4">自然</a></li>
                        </ul>
                    </c:if>
                    <c:if test="${requestScope['kenny.wiki.category'].categoryId == 3}">
                        <ul>
                            <li><a href="${ctx}/loadIndex">首页</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=1">历史</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=2">文化</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=3" class="current">地理</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=4">自然</a></li>
                        </ul>
                    </c:if>
                    <c:if test="${requestScope['kenny.wiki.category'].categoryId == 4}">
                        <ul>
                            <li><a href="${ctx}/loadIndex" class="current">首页</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=1">历史</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=2">文化</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=3">地理</a></li>
                            <li><a href="${ctx}/getByCategory?categoryId=4" class="current">自然</a></li>
                        </ul>
                    </c:if>

                </div> <!-- end of templatemo_menu -->

                <div id="banner_right">
                    <h1>智云软件<span>zhiyun soft</span></h1>
                </div>

            </div> <!-- end of templatemo_banner -->

            <div id="templatemo_main_wrapper">
                <div id="templatemo_content_wrapper">

                    <div id="templatemo_sidebar">

                        <div class="sidebar_box">

                            <h2>热门编辑</h2>
                            <c:forEach items="${requestScope['kenny.wiki.category.hotEditTitles']}" var="title" begin="0" end="2">
                                <div class="news_box">

                                    <a href="${ctx}/view_title?titleId=${title.titleId}">
                                        <img src="${ctx}${title.titlePhoto}" alt="${title.titleName}" />
                                    </a>
                                    <p><a href="${ctx}/view_title?titleId=${title.titleId}">${title.titleName}</a></p>
                                        
                                    <div class="cleaner"></div>

                                </div>
                            </c:forEach>

                        </div>

                        <div class="sidebar_box">
                            <h2>频道简介</h2>

                            <blockquote>
                                <p>在知识的海洋里，能带给我们无数意想不到的惊喜，大学不是学习的终止点，而恰恰使我们学习的开始点，从这里开始，我才真正认识到自己才刚刚开始学，要学的东西实在太多太多。</p>

                                <cite>Kenny - <span>Web Designer</span></cite>
                            </blockquote>
                        </div>

                    </div> <!-- end of sidebar -->

                    <div id="templatemo_content">

                        <h2>热门访问</h2>
                        <c:forEach items="${requestScope['kenny.wiki.category.hotViewTitles']}" var="title" begin="0" end="2">
                        <div id="gallery">
                            <div class="gallery_box">
                                <div class="gb_left">
                                    <a href="${ctx}/view_title?titleId=${title.titleId}" class="pirobox">
                                        <img src="${ctx}${title.titlePhoto}" alt="${title.titleName}" />
                                    </a>
                                </div>
                                <div class="gb_right">
                                    <h5>${title.titleName}</h5>
                                    <p>${title.titleIntro}</p>
                                    <div class="button"><a href="${ctx}/view_title?titleId=${title.titleId}">查看详情</a></div>
                                </div>
                                <div class="cleaner"></div>
                            </div>
                        </div>
                        </c:forEach>

                        <div class="cleaner"></div>

                    </div>

                    <div class="cleaner"></div>
                </div>
            </div><div id="templatemo_main_bottom"></div>

            <div id="templatemo_footer">
                Copyright © 2010 <a href="#">智云软件</a> |
		Designed by <a href="http://www.templatemo.com" target="_parent">Kenny Lin</a> |
		Validate <a href="http://validator.w3.org/check?uri=referer">XHTML</a> &amp;
                <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
            </div> <!-- end of templatemo_footer -->

            <div class="cleaner"></div>
        </div> <!-- end of templatemo_wrapper -->

    </body>
</html>